des1=mytest-debug.exe
des2=mytest-release.exe
src=mytest.c

$(des1):$(src)
	@gcc $(src) -o $(des2) -std=c99
	@echo "compile $(src) to $(des2) in release mode"
_g:$(src)
	@gcc $(src) -o $(des1) -std=c99 -g
	@echo "compile $(src) to $(des1) in debug mode"
.PHONY:clean
clean:
	@rm -rf $(des1) $(des2)
	@echo "delete $(des1) $(des2)"

